// Compute integer powers of two
class Power {
    public static void main(String args[]) {
        int e;
        int result;

        for(int i=0; i < 10; i++) {
            result = 1;
            e = i;

            while(e > 0) {
                result *= 2;
                e--; // Multiplies the power a number of times.
            }
        
            System.out.println("2 to the " + i + " power is " + result);
        }

    }
}
